import {
  ChannelRequestVO,
} from './types';
import request from '@/utils/request';

export function operateChannel(channelType: string, requestVO: ChannelRequestVO): any {
  return request({
    url: '/kernel/manager/proxy-redis-topic/proxy/redis/topic/channel',
    method: 'post',
    data: {
      name: requestVO.name,
      uuid: requestVO.uuid,
      mode: requestVO.mode,
      send: requestVO.send,
      timeout: requestVO.timeout,
      channelType: channelType
    },
  });
}
